package com.example.tse.rbhttpservice.service.member.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.member.model.MemberFavoriteGetList;
/**
* 获取用户个人的收藏商品列表，返回结果按照添加时间到序，当某商品已下架时显示“已失效”
* @author wliu
* edit tse
*/
public class MemberFavoriteGetListResponse extends RudderResponse{

private List<MemberFavoriteGetList> getList = new ArrayList<MemberFavoriteGetList>();


/**
* @return getList
*/
public List<MemberFavoriteGetList> getGetList() {
return this.getList;
}

/**
* @return getList
*/
public void setGetList(List<MemberFavoriteGetList> getList) {
this.getList = getList;
}
/**
methodName    GetList
type          List<MemberFavoriteGetList>
name          getList
defaultType   new ArrayList<MemberFavoriteGetList>()
*/

/**


    private static void filterFor(MemberFavoriteGetList member) {
        if (member.getProductId() == null) {
            member.setProductId("");
        }
        if (member.getName() == null) {
            member.setName("");
        }
        if (member.getPrice() == null) {
            member.setPrice("");
        }
        if (member.getAddTime() == null) {
            member.setAddTime("");
        }
        if (member.getThumbnailPic() == null) {
            member.setThumbnailPic("");
        }
        if (member.getMarketable() == null) {
            member.setMarketable("");
        }
        if (member.getGoodsId() == null) {
            member.setGoodsId("");
        }
    }

    public static void filter(MemberFavoriteGetListResponse member) {
        if (member.getGetList() == null) {
            member.setGetList(new ArrayList<MemberFavoriteGetList>());
        } else {
            for (MemberFavoriteGetList item : member.getGetList()) {
                filterFor(item);
            }
        }
    }

*/

}
